/*
 * @Author: 袁文帅
 * @Date: 2021-02-22 19:10:47
 * @LastEditTime: 2021-02-23 10:28:43
 * @LastEditors: last update your name
 * @人生亦有命，安能行叹复坐愁
 */
import React, { Component } from 'react'
import fun from "../utils/connect"
import * as actions from "../utils/actions"
import createActions from "../utils/bindCreatorActions"
class One extends Component {
    render() {
        return (
            <div>
                {
                    this.props.salary
                }
                <button onClick={()=>{
                    this.props.changeSalary('Imperative')
                }}>点击修改</button>
            </div>
        )
    }
}
const mapStateToProps = (dispatch) => createActions(actions,dispatch)

export default fun(function (params) {
    return {
        ...params.oneReducer
    }
},mapStateToProps)(One)
